<ion-view view-title="Dashboard">
    <ion-content class="padding">
        <h2>插件测试</h2>
        <ion-list>
            <ion-item class="row">
                <p class="col">后台运行测试</p>
                <button class="col" ng-click="ctrl.startBackground()">启用</button>
                <button class="col" ng-click="ctrl.endBackground()">终止</button>
            </ion-item>
            <ion-item class="row">
                <p class="col">连接：{{ctrl.networkState.isOnline}}</p>
                <p class="col">Wifi：{{ctrl.networkState.isWifi}}</p>
                <p class="col">SSID：{{ctrl.networkState.ssid}}</p>
            </ion-item>
            <ion-item>
                <label class="row padding-top">
                    <span class="col">Server</span>
                    <input class="col" type="text" ng-model="ctrl.socketInfo.server">
                </label>
                <div class="row">
                    <button class="col" ng-click="ctrl.link()">连接{{ctrl.socketInfo.state}}</button>
                </div>
                <div class="item padding-top padding-bottom" ng-repeat="item in ctrl.socketInfo.data">{{item}}"</div>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-view>
